﻿using DatabaseTransfer.Forms;
using DatabaseTransfer.Logs;
using DatabaseTransfer.Tables;
using log4net;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DatabaseTransfer.Forms
{
    public partial class Main : Form
    {
        private static ILog logger = LogFactory.GetLogger(typeof(Main));

        public Main()
        {
            InitializeComponent();
        }

        private void start_Click(object sender, EventArgs e)
        {
            logger.Info("Starting new Transfer");

            TransferSetup setup = new TransferSetup();
            setup.Show();
            
        }

        private void logPage_Click(object sender, EventArgs e)
        {
            LogConfig config = new LogConfig();
            config.SetupLogs();
            config.Show();
        }

        private void closeBtn_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void load_Click(object sender, EventArgs e)
        {
            LoadFiles lf = new LoadFiles();
            lf.ShowDialog();
        }
    }
}
